package com.gin.no_gay_alliance.activity;

import android.content.Context;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuInflater;

import androidx.appcompat.widget.Toolbar;

import com.gin.no_gay_alliance.R;
import com.gin.no_gay_alliance.databinding.ActivityNoticeBinding;
import com.gin.no_gay_alliance.fragment.main.MainNoticeFragment;

public class NoticeActivity extends BaseBindingActivity<ActivityNoticeBinding> {
    MainNoticeFragment mainNoticeFragment;


    /**
     * 解析意图
     *
     * @param intent 意图
     */
    @Override
    protected void handleIntent(Intent intent) {

    }

    /**
     * onCreate中的后续操作
     */
    @Override
    protected void onCreate() {
        mainNoticeFragment = (MainNoticeFragment) getSupportFragmentManager().findFragmentById(R.id.fragment);
    }

    /**
     * 装载右上角菜单
     *
     * @param menu         菜单
     * @param menuInflater 菜单渲染器
     */
    @Override
    protected void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {

    }

    @Override
    protected Toolbar initToolbar() {
        return b.toolbar;
    }

    @Override
    protected void onResume() {
        super.onResume();
        b.toolbar.setTitle("提醒");
    }

    public static void startActivity(Context context) {
        context.startActivity(new Intent(context, NoticeActivity.class));
    }
}